//
//  ViewController.swift
//  Dynamic
//
//  Created by 移云 on 2020/5/25.
//  Copyright © 2020 MaoYeYeDeJiangCuCha. All rights reserved.
//

import UIKit
//动力学
class ViewController: UIViewController {
    
    
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view.
        
        //重力和碰撞
//        let bgView = DrawRectView.init(frame: self.view.frame)
//        self.view.addSubview(bgView)
        
        //甩行为
//        let snapView = SnapView.init(frame: self.view.frame)
//        self.view.addSubview(snapView)
        
        //强附着行为
//        let attachView = AttachView.init(frame: self.view.frame)
//        self.view.addSubview(attachView)
        
        //推行为
//        let bgView = PushBehaviorView.init(frame: self.view.frame)
//        self.view.addSubview(bgView)
        
        //动力学元素自身属性- 弹力、密度、摩擦力
//        let bgView = DynamicItemBehavior.init(frame: self.view.frame)
//        self.view.addSubview(bgView)
        
        //毛毛虫
        let bgView = Carpenterworm.init(frame: self.view.frame)
        self.view.addSubview(bgView)
        
    }


}


